//
//  TTHTTPTool.h
//  WinesMall
//
//  Created by Isaac on 16/8/27.
//  Copyright © 2016年 Isaac. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TTHTTPTool : NSObject

+(void)get:(NSString *)url params:(NSMutableDictionary *)params isNeedToken:(BOOL)isNeedToken complete:(void (^)(BOOL, id, NSError *))complete;

+ (void)post:(NSString *)url params:(NSMutableDictionary *)params isNeedToken:(BOOL)isNeedToken complete:(void (^)(BOOL, id, NSError *))complete;

+ (void)uploadImage:(NSString *)url params:(NSMutableDictionary *)params data:(NSData *)data complete:(void (^)(BOOL, id, NSError *))complete;

+ (void)uploadVideo:(NSString *)url params:(NSMutableDictionary *)params data:(NSData *)data complete:(void (^)(BOOL, id, NSError *))complete;

+ (void)downloadFileWithURL:(NSString *)url params:(NSMutableDictionary *)params savePath:(NSString *)savePath data:(NSData *)data complete:(void (^)(BOOL, id, NSError *))complete;

@end
